using System;
using DevExpress.XtraEditors;

namespace MobileLoader.Controls
{
    public partial class DeleteDayXtraForm : XtraForm
    {
        public DateTime Day
        {
            get { return dateEdit.DateTime; }
        }

        public DeleteDayXtraForm()
        {
            InitializeComponent();
            dateEdit.EditValueChanging += DateEditEditValueChanging;
        }

        void DateEditEditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
        {
            okSimpleButton.Enabled = e.NewValue != null;
        }

        
    }
}